//
//  PublicHeader.h
//  HuaRun
//
//  Created by admin on 17/8/28.
//  Copyright © 2017年 Sunny. All rights reserved.
//

#ifndef PublicHeader_h
#define PublicHeader_h

//日志输出
#ifdef DEBUG

/** 正常输出*/
#define NSLog(xx, ...)  NSLog(@"%s，第%d行，" xx, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)

#else
#define NSLog(...)
#endif

#define kTestStr @"测试牙缝大沙发上飞机奥稍等；看风景；啊就阿斯蒂芬几点上课"

// 屏幕宽高宏
#define kMainScreenWidth  [UIScreen mainScreen].bounds.size.width
#define kMainScreenHeight [UIScreen mainScreen].bounds.size.height

/** 常用的边距属性 10*/
#define kMargin10 10

/** 常用的边距属性 15*/
#define kMargin15 15

/** 防止block里循环引用*/
#define weakself(ws)  __weak typeof(self) ws = self


#pragma mark -----------颜色-----------

#ifdef DEBUG
    /** 随机生成一个颜色*/
//#define kRandomColor [UIColor colorWithRed:arc4random_uniform(255)/255.0 green:arc4random_uniform(255)/255.0 blue:arc4random_uniform(255)/255.0 alpha:0.5]
    #define kRandomColor    [UIColor whiteColor]
#else
    #define kRandomColor    [UIColor whiteColor]

#endif

/** 自定义颜色*/
#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]

#define RGB249 RGBA(249, 249, 249, 1)

//高级筛选联系人 背景图宽度
#define kChooseViewWidth 0.71 * kMainScreenWidth

#pragma mark -----------字体-----------

/** 设置字体大小（12）*/
#define kFontSize(size) [UIFont systemFontOfSize:size]

#define kGeneralFontSize kFontSize(12)
#define kFontSize10 kFontSize(10)
#define kFontSize15 kFontSize(15)
#define kFontSize17 kFontSize(17)

#define isLoginState @"isLoginState"

#endif /* PublicHeader_h */
